int* dailyTemperatures(int* temperatures, int temperaturesSize, int* returnSize){
          int top=0,j=0;
          int stk[temperaturesSize];
          int *result=(int *)malloc(sizeof(int)*temperaturesSize);
          *returnSize=temperaturesSize;
        for(int i=0;i<temperaturesSize;i++){
          result[i]=0;
        }
        for(int i=0;i<temperaturesSize;i++){
            if(top!=0){
              while(temperatures[i]>temperatures[stk[top-1]]){
                result[stk[top-1]]=i-stk[top-1];
                top--;
                if(top==0) break;
              }
            }
            stk[top]=i;
            top++;
        }
         return result;
}
